<?php

namespace app\im\model;

class ChatRoomModel extends Model
{
    protected $table = 'chatrooms';

    public function messages()
    {
        return $this->hasMany(ChatRoomMessageModel::class, 'room_id');
    }
}
